﻿using System.Collections.ObjectModel;

namespace CheckTicket.Sample
{
    /// <summary>
    ///
    /// </summary>
    public class MainViewModel : ObservableObject
    {
        public ushort Port { get; set; } = 8008;

        /// <summary>
        ///
        /// </summary>
        public ObservableCollection<string> Message { get; set; }

        /// <summary>
        ///
        /// </summary>
        public TicketType[] TicketTypes { get; set; }

        /// <summary>
        ///
        /// </summary>
        public MainViewModel()
        {
            Message = new ObservableCollection<string>();
            TicketTypes = new[]
            {
                new()
                {
                    Value = 0, Name = "单人票"
                },
                new TicketType
                {
                    Value = 1, Name = "多人票"
                },
                new TicketType
                {
                    Value = 2, Name = "功能票"
                }
            };
        }
    }
}